package com.our.sys.project1.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.springside.modules.orm.grid.ViewField;

import com.our.sys.orm.hibernate.AuditableEntity;

/**
 * 价表
 * @author acer
 *
 */
@Entity
@Table(name = "B_PriceTable")
public class PriceTable extends AuditableEntity implements Serializable {

    private static final long serialVersionUID = -1779189162612882391L;

    @ViewField
    private Long feesId;
    @ViewField(header = "收费项目", width = 100, align = "left")
    private String feeProject;
    @ViewField
    private Long consumId;
    @ViewField(header = "物品编码", width = 150, align = "left")
    private String consumCode;
    @ViewField(header = "物品名称", width = 250, align = "left")
    private String consumName;

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator")
    @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "B_PriceTable")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    
    public Long getFeesId() {
        return feesId;
    }

    public void setFeesId(Long feesId) {
        this.feesId = feesId;
    }

    public String getFeeProject() {
        return feeProject;
    }

    public void setFeeProject(String feeProject) {
        this.feeProject = feeProject;
    }

    public Long getConsumId() {
        return consumId;
    }

    public void setConsumId(Long consumId) {
        this.consumId = consumId;
    }

    public String getConsumCode() {
        return consumCode;
    }

    public void setConsumCode(String consumCode) {
        this.consumCode = consumCode;
    }

    public String getConsumName() {
        return consumName;
    }

    public void setConsumName(String consumName) {
        this.consumName = consumName;
    }

}
